import Vue from 'vue'
import Router from 'vue-router'
import web from '@/views/web'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: web,
      redirect: '/home',
      children: [
        {
          path: 'home',
          component: () => import("@/views/web/home"),
          meta: {
            title: "首页"
          }
        },
        {
          path: 'videoList',
          component: () => import("@/views/web/videoList"),
          meta: {
            title: "视频列表"
          }
        },
        {
          path: 'videoMsg',
          component: () => import("@/views/web/videoMsg"),
          meta: {
            title: "视频详情"
          }
        },
        {
          path: 'videoPlay',
          component: () => import("@/views/web/videoPlay"),
          meta: {
            title: "视频播放"
          }
        }
      ]
    }
  ]
})
